﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" x:Class="Webnet.Controls.SourceTypeCtrl"
    Foreground="#FF242424" Margin="0">
	<UserControl.Resources>
		<ResourceDictionary>
			<ResourceDictionary.MergedDictionaries>
				<ResourceDictionary Source="SharedResources.xaml"/>
			</ResourceDictionary.MergedDictionaries>
			<SolidColorBrush x:Key="CheckBoxStroke" Color="#8E8F8F"/>
			<Style x:Key="CheckRadioFocusVisual">
				<Setter Property="Control.Template">
					<Setter.Value>
						<ControlTemplate>
							<Rectangle Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="14,0,0,0" SnapsToDevicePixels="true"/>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
			<Style x:Key="InsetRadioButtonStyle" TargetType="{x:Type RadioButton}">
				<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
				<Setter Property="Background" Value="#F4F4F4"/>
				<Setter Property="BorderBrush" Value="{StaticResource CheckBoxStroke}"/>
				<Setter Property="BorderThickness" Value="1"/>
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type RadioButton}">
							<Grid Width="Auto" Height="Auto">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="20"/>
									<ColumnDefinition Width="Auto"/>
								</Grid.ColumnDefinitions>
								<BulletDecorator HorizontalAlignment="Center" Margin="0,0,4,0" VerticalAlignment="Center" Grid.ColumnSpan="1" Background="Transparent" d:LayoutOverrides="Width, Height">
									<BulletDecorator.Bullet>
										<Microsoft_Windows_Themes:BulletChrome Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" IsChecked="{TemplateBinding IsChecked}" IsRound="true" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}"/>
									</BulletDecorator.Bullet>
								</BulletDecorator>
								<TextBlock Margin="4,0.75,-0.003,-0.75" Grid.Column="1" Foreground="#FFFDFFF4" Text="{TemplateBinding Content}" TextWrapping="Wrap" d:LayoutOverrides="Width, Height"/>
								<TextBlock Margin="4,0,-0.001,0" Grid.Column="1" Text="{TemplateBinding Content}" TextWrapping="Wrap" Foreground="{TemplateBinding Foreground}" d:LayoutOverrides="Width, Height"/>
							</Grid>
							<ControlTemplate.Triggers>
								<Trigger Property="HasContent" Value="true">
									<Setter Property="FocusVisualStyle" Value="{StaticResource CheckRadioFocusVisual}"/>
									<Setter Property="Padding" Value="4,0,0,0"/>
								</Trigger>
								<Trigger Property="IsEnabled" Value="false">
									<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
								</Trigger>
							</ControlTemplate.Triggers>
						</ControlTemplate>
					</Setter.Value>
				</Setter>
			</Style>
		</ResourceDictionary>
	</UserControl.Resources>
    <Grid Margin="20,0,10,10">
            
    	<Grid.RowDefinitions>
    		<RowDefinition Height="30"/>
    		<RowDefinition Height="*"/>
    		<RowDefinition Height="30"/>
    	</Grid.RowDefinitions>
            
    	<TextBlock HorizontalAlignment="Left" Foreground="#FFFDFFF4" Text="Select source type :" TextWrapping="Wrap" Margin="0,0.992,0,2.161" FontSize="16" d:LayoutOverrides="Height" FontWeight="Bold"/>
            
    	<TextBlock HorizontalAlignment="Left" Foreground="#FF242424" Text="Select source type :" TextWrapping="Wrap" Margin="0,0,0,3.17" FontSize="16" d:LayoutOverrides="Height" FontWeight="Bold"/>
    	<StackPanel Margin="20,5,0,10" VerticalAlignment="Top" Orientation="Vertical" Grid.Row="1">
    		<RadioButton x:Name="_htmlTypeRadio" Margin="0,0,0,5" Content="HTML code" Style="{DynamicResource InsetRadioButtonStyle}" Foreground="#FF242424" ToolTip="This is usually for embadable HTML code"/>
    		<RadioButton x:Name="_urlTypeRadio" Content="Site url" Margin="0,0,0,5" Style="{DynamicResource InsetRadioButtonStyle}" ToolTip="Use this option if you just want Webnet to show a web site content" />
    	</StackPanel>
    	<StackPanel Margin="49.933,2.5,5,2.5" Grid.Row="2" Orientation="Horizontal" d:LayoutOverrides="Height" HorizontalAlignment="Right">
    		<Button x:Name="_cancelBt" Content="Cancel" VerticalAlignment="Center" Cursor="Hand" Style="{DynamicResource StandardButtonStyle}" Height="25" Foreground="White" Margin="0,0,10,0" Width="60"/>
            
    		<Button x:Name="_nextBt" HorizontalAlignment="Right" Width="90" Content="Next" Margin="0" VerticalAlignment="Center" Style="{DynamicResource NextButtonStyle}" Foreground="White" Cursor="Hand" Height="25"/>
            
    	</StackPanel>
            
    </Grid>
</UserControl>
